//
//  UIImage+XM.h
//  XMWeibo
//
//  Created by chi on 14-8-19.
//  Copyright (c) 2014年 xiaoming. All rights reserved.
//
// UIImage分类
//
#import <UIKit/UIKit.h>

@interface UIImage (XM)

/** 防拉伸图片 */
+ (instancetype)stretchableImageWithName:(NSString*)name;

+ (instancetype)stretchableImageWithName:(NSString*)name andLeftCap:(CGFloat)left andTopCap:(CGFloat)top;

/** 生成适配ios7的UIImage */
+ (instancetype)adaptIOS7ImageWithName:(NSString*)name;

/** 以非缓存方向加载图片 */
+ (instancetype)loadImageWithBundle:(NSBundle*)bundle ContentsOfFile:(NSString*)name ofType:(NSString *)ext;

@end
